from django.db import models


class BaseModel(models.Model):
    create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间', blank=True, null=True)
    update_time = models.DateTimeField(auto_now=True, verbose_name='更新时间', blank=True, null=True)
    is_delete = models.BooleanField(verbose_name='是否被删除', help_text='软删除', default=False, blank=True)
    is_show = models.BooleanField(verbose_name='是否展示', default=True, blank=True)

    class Meta:
        abstract = True
